<?php
class UserBasicModel extends Model{
	protected $_validate=array(
		array('email','email','请输入正确的邮箱',1),
		array('email','','该邮箱已注册',1,'unique'),
		array('pwd','/.{6,16}/','密码长度为6~16',0,'regex'),
		array('repwd','pwd','两次密码输入不一致',0,'confirm'),
		array('username','','昵称已存在',1,'unique'),
	);

	protected $_auto=array(
		array('pwd','md5',1,'function'),
		array('create_time','time',1,'function'),
	);
}
?>